package com.kvn.btrace._03sample;

import static com.sun.btrace.BTraceUtils.print;
import static com.sun.btrace.BTraceUtils.println;

import java.util.HashMap;

import com.sun.btrace.annotations.BTrace;
import com.sun.btrace.annotations.OnMethod;
import com.sun.btrace.annotations.Self;

/**
 * @author wzy
 * @date 2017年10月12日 下午7:40:59
 */
@BTrace
public class BTraceField {
//	@OnMethod(clazz = "java.util.HashMap", method = "put")
//	public static void m(@Self HashMap map, Object Key, Object value) {
//		// all calls to the methods with signature "()"
//		println("====================");
//		print(Key);
//		print(":");
//		println(value);
//	}

	@OnMethod(clazz = "com.kvn.btrace._03sample.TestHello", method = "test")
	public static void d(@Self Object obj, int age) {
		print("test method is called, input age=");
		println(age);
	}
}
